package com.slwish.xty.entity;

import org.litepal.crud.DataSupport;

import java.util.ArrayList;
import java.util.List;

/**
 * 模块说明：
 *
 * @author 陈浩
 * @date 2017/11/29
 */

public class UserModel extends DataSupport{
    /**
     * data : {"userId":34,"username":"","nickname":"","password":"110chenhao","sex":"","birthday":"","city":"","mobile":"18069899956","photo":"","token":"6xJeS0ipM/xJEt6V+tVuIQ==","point":"100","doclass":[{"id":0,"doName":"","doPoint":"","doClass":"5","doStatus":""},{"id":0,"doName":"","doPoint":"","doClass":"2","doStatus":""},{"id":0,"doName":"","doPoint":"","doClass":"3","doStatus":""},{"id":0,"doName":"","doPoint":"","doClass":"4","doStatus":""},{"id":1,"doName":"注册","doPoint":"100","doClass":"1","doStatus":""}]}
     */
    /**
     * userId : 34
     * username :
     * nickname :
     * password : 110chenhao
     * sex :
     * birthday :
     * city :
     * mobile : 18069899956
     * photo :
     * token : 6xJeS0ipM/xJEt6V+tVuIQ==
     * point : 100
     * doclass : [{"id":0,"doName":"","doPoint":"","doClass":"5","doStatus":""},{"id":0,"doName":"","doPoint":"","doClass":"2","doStatus":""},{"id":0,"doName":"","doPoint":"","doClass":"3","doStatus":""},{"id":0,"doName":"","doPoint":"","doClass":"4","doStatus":""},{"id":1,"doName":"注册","doPoint":"100","doClass":"1","doStatus":""}]
     */
    private long userId;//用户id
    private String username;//姓名
    private String nickname;//昵称
    private String password;//密码
    private String sex;//性别
    private String birthday;//生日
    private String city;//城市
    private String mobile;//手机
    private String photo;//头像url
    private String token;//登录token
    private String point;
    private List<Doclass> doclass = new ArrayList<>();

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getPoint() {
        return point;
    }

    public void setPoint(String point) {
        this.point = point;
    }

    public List<Doclass> getDoclass() {
        return doclass;
    }

    public void setDoclass(List<Doclass> doclass) {
        this.doclass = doclass;
    }

    @Override
    public String toString() {
        return "DataBean{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                ", city='" + city + '\'' +
                ", mobile='" + mobile + '\'' +
                ", photo='" + photo + '\'' +
                ", token='" + token + '\'' +
                ", point='" + point + '\'' +
                ", doclass=" + doclass +
                '}';
    }

}
